﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed

#pragma once
#include "IObject.h"
#include "GcmpApplicationInterface.h"

namespace gcmp
{
    class IApplicationEventArgs;

    /// \brief 应用程序事件处理者接口。
    //
    class GCMP_APPLICATION_INTERFACE_EXPORT IApplicationEventHandler : public IObject
    {
        DEFINE_CAST_DERIVED(gcmp::IApplicationEventHandler, gcmp::IObject)

    public:
        /// \brief 事件处理方法。
        ///
        /// \param  pArgs 应用程序事件参数。
        virtual void On(IApplicationEventArgs* pArgs) = 0;
    };
}
